// 用户信息
export interface User {
  id: string
  _id: string
  email: string
  name: string
  role: 'admin' | 'teacher' | 'student'
  avatar?: string
  bio?: string
  createdAt: string
  updatedAt?: string
}

// 登录数据
export interface LoginData {
  email: string
  password: string
}

// 注册数据
export interface RegisterData {
  name: string
  email: string
  password: string
  role: 'teacher' | 'student'
}

// API响应
export interface ApiResponse<T = any> {
  success: boolean
  message?: string
  data?: T
  code?: string
  errors?: string[]
}

// 登录响应数据
export interface LoginResponse {
  accessToken: string
  refreshToken: string
  user: User
}

// 忘记密码响应
export interface ForgotPasswordResponse {
  message: string
}